package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.SystemUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface SystemUserMapper {

    SystemUser findByUserNameAndPassword(SystemUser systemUser);
    int insertSystemUser(SystemUser systemUser);
    List<SystemUser> selectAll(SystemUser systemUser);

    SystemUser selectByUserId(Integer userId);

    List<SystemUser> selectByRole(int role);

    SystemUser selectByUserName(SystemUser systemUser);

    int insertSu(SystemUser systemUser);


    List<HashMap<Integer,Object>> selectCount();

    int updateSu(SystemUser systemUser);


}
